package demo15;

import java.io.*;
import java.net.Socket;

public class ClientTest4 {
    public static void main(String[] args) {
        Socket socket=null;
        File file=new File("E:\\111\\123.txt");
        try {
            socket=new Socket("localhost",7000);
            BufferedReader br=new BufferedReader(new FileReader("E:\\111\\123.txt"));

            String str;
            while((str=br.readLine())!=null){
                System.out.println(str);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
